package com.tuniu.agents.impl.trip.chain;

/**
 * Enum for trip processing modes
 */
public enum ProcessMode {
    // Basic mode: extraction only
    BASIC(1),
    // Standard mode: includes extraction and search
    STANDARD(2),
    // Advanced mode: includes all processors
    ADVANCED(3);

    private final int value;

    ProcessMode(int value) {
        this.value = value;
    }

    public int getValue() {
        return value;
    }

    public static ProcessMode fromValue(int value) {
        for (ProcessMode mode : ProcessMode.values()) {
            if (mode.getValue() == value) {
                return mode;
            }
        }
        return STANDARD; // Default returns standard mode
    }
} 